import { getEditorProps, getGridEditorCommonProps } from './common';

/**
 * 获取级联选择器的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getCascaderProps<C>() {
  return { ...getEditorProps<C>(), value: String };
}

/**
 * 获取表格级联选择器的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getGridCascaderProps<C>() {
  return { ...getCascaderProps<C>(), ...getGridEditorCommonProps() };
}
